import Mock from 'mockjs';


export default {
    className: "system.model.SpecialArea",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                "queryResult|38": [{
                    "keyID|1000-9999": 1000,
                    "specialAreaCode": /^[a-z][a-z][a-z][a-z][a-z]$/,
                    "specialAreaName": Mock.mock('@ctitle'),
                    "desc": Mock.mock('@ctitle'),
                    "status": "有效",
                    // "creationBy": "admin",
                    // "createTime": Mock.mock('@now'),
                    "lastUpdatedBy": "admin",
                    "lastUpdateTime": Mock.mock('@now'),
                    "version": 1,
                }]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "keyID|1000-9999": 1000,
                "specialAreaCode": /^[a-z][a-z][a-z][a-z][a-z]$/,
                "specialAreaName": Mock.mock('@ctitle'),
                "desc": Mock.mock('@ctitle'),
                "status": "有效",
                "lastUpdatedBy": "admin",
                "lastUpdateTime": Mock.mock('@now'),
                "version": 1,
            }
        });
    },
};